<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>
<!--一般来讲，上传的时候都用post方式-->
<!--如果表单中有上传文件的功能，那么表单的form标签中就必须加enctype="multipart/form-data"-->
<form action="upload.php" method="post" enctype="multipart/form-data">
    <input type="file" name="pic">

    <br><br>
    <input type="submit" value="上传">
</form>



</body>
</html>